import request from "@/utils/request";

// 查询展厅列表
export function listGallery(query) {
  return request({
    url: "/gallery/gallery/list",
    method: "get",
    params: query,
  });
}

// 查询展厅详细
export function getGallery(galleryId) {
  return request({
    url: "/gallery/gallery/" + galleryId,
    method: "get",
  });
}

// 新增展厅
export function addGallery(data) {
  return request({
    url: "/gallery/gallery",
    method: "post",
    data: data,
  });
}

// 修改展厅
export function updateGallery(data) {
  return request({
    url: "/gallery/gallery",
    method: "put",
    data: data,
  });
}

// 删除展厅
export function delGallery(galleryId) {
  return request({
    url: "/gallery/gallery/" + galleryId,
    method: "delete",
  });
}
